scoreboard players add @s SystemComKill 1
#【击杀玩家+1金苹果、+5苹果、适量经验球、20金币】
give @s bread 5
give @s golden_apple 1
execute at @s run summon minecraft:experience_orb ~2 ~ ~ {Value:5}
execute at @s run summon minecraft:experience_orb ~-2 ~ ~ {Value:5}
execute at @s run summon minecraft:experience_orb ~ ~ ~ {Value:5}
execute at @s run summon minecraft:experience_orb ~ ~ ~2 {Value:5}
execute at @s run summon minecraft:experience_orb ~ ~ ~-2 {Value:5}
scoreboard players add @s DataGold 20

#【全服最高连杀】
execute if score @s SystemComKill > MAXComKill System run tellraw @s [{"text":"玩家 ","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@s","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 突破了","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"本服目前最高连杀记录","color":"yellow","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
execute if score @s SystemComKill > MAXComKill System store result score MAXComKill System run scoreboard players get @s SystemComKill

#【战场连杀】
execute as @s[scores={SystemComKill=3}] run tellraw @a [{"text":"玩家 ","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@s","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 完成了","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"三连杀 ","color":"yellow","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 奖励：","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"金币×5","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
scoreboard players add @s[scores={SystemComKill=3}] DataGold 5

execute as @s[scores={SystemComKill=4}] run tellraw @a [{"text":"玩家 ","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@s","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 完成了","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"四连杀","color":"yellow","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 奖励：","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"金币×15","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
scoreboard players add @s[scores={SystemComKill=4}] DataGold 15

execute as @s[scores={SystemComKill=5}] run tellraw @a [{"text":"玩家 ","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@s","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 完成了","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"五连杀","color":"yellow","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 奖励：","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"金币×30","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
scoreboard players add @s[scores={SystemComKill=5}] DataGold 30
scoreboard players add @s[scores={SystemComKill=5}] DataEXCard 1

execute as @s[scores={SystemComKill=8}] run tellraw @a [{"text":"玩家 ","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@s","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 已经","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"超越神了！","color":"yellow","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 奖励：","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"金币×50","color":"gold","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
scoreboard players add @s[scores={SystemComKill=8}] DataGold 50
scoreboard players add @s[scores={SystemComKill=8}] DataEXCard 1



#【连续超神】
scoreboard players add @s[scores={SystemComKill=9..}] DataGold 10
scoreboard players add @s[scores={SystemComKill=9..}] DataEXCard 1
execute as @s[scores={SystemComKill=9..}] run tellraw @s [{"text":"玩家 ","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@s","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 已经","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"超越神了！","color":"yellow","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]

#【连杀排行榜】
execute if score @s SystemComKill > @s DataComRank if score @s SystemComKill matches 5 run tellraw @a [{"text":"玩家 ","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@s","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 首次完成","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"五连杀","color":"yellow","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 奖励：","color":"white","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"英雄卡×5","color":"dark_purple","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
execute if score @s SystemComKill > @s DataComRank if score @s SystemComKill matches 5 run scoreboard players add @s DataGold 100
#将自身最高连杀记录到连杀排行中
execute if score @s SystemComKill > @s DataComRank store result score @s DataComRank run scoreboard players get @s SystemComKill

#重置击杀判定
scoreboard players reset @s SystemKill